local skel = fk.CreateSkill {
  name = "lb_zero__mengyao_high_tanatuosi",
}

Fk:loadTranslationTable {
  ["lb_zero__mengyao_high_tanatuosi"] = "恶名·塔纳托斯",
  [":lb_zero__mengyao_high_tanatuosi"] = "首次获得此技能时，你回满体力值。你使用【杀】无距离限制且可额外指定一个目标。当你使用【杀】时，你可令此【杀】伤害+1且不可被抵消。",

  ["#lb_zero__mengyao_high_tanatuosi"] = "恶名·塔纳托斯：你可以令 %arg 伤害+1且不可被抵消",

  ["$lb_zero__mengyao_high_tanatuosi1"] = "",
  ["$lb_zero__mengyao_high_tanatuosi2"] = "",
}

skel:addEffect(fk.CardUsing, {
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(skel.name) and target == player and data.card.trueName == "slash"
  end,
  on_cost = function(self, event, target, player, data)
    return player.room:askToSkillInvoke(player, { skill_name = skel.name, prompt = "#lb_zero__mengyao_high_tanatuosi:::" .. data.card:toLogString() })
  end,
  on_use = function(self, event, target, player, data)
    data.unoffsetableList = player.room.players
    data.additionalDamage = (data.additionalDamage or 0) + 1
  end
})

skel:addEffect("targetmod", {
  extra_target_func = function (self, player, skill, card)
    if player:hasSkill(skel.name) and card and card.trueName == "slash" then
      return 1
    end
  end,
  bypass_distances = function (self, player, skill, card, to)
    if player:hasSkill(skel.name) and card and card.trueName == "slash" then
      return true
    end
  end,
})

skel:addAcquireEffect(function(self, player, is_start)
  if player.room:addTableMarkIfNeed(player, "lb_zero__mengyao_high_skills", skel.name) and player:isWounded() then
    player.room:broadcastPlaySound("./packages/lb_kill_zero/audio/skill/mengyao_audio/yihai_" .. math.random(5, 6))
    player.room:recover{
      who = player,
      num = player.maxHp - player.hp,
      skillName = skel.name,
      recoverBy = player
    }
  end
end)

return skel
